package org.sn.jdish.interview.dmall.ab;

public class TestAB {

	public static void main(String[] args) {
		System.out.println("===mian===");
		new A();
		System.out.println();
		new B();
		System.out.println();
		new A();
		System.out.println();
		System.out.println(test());

		((TestAB) null).testMethod();
		
		System.out.println("======");
		int i = 1;
		System.out.println(i);
		System.out.println(i++);
		System.out.println(i);
		System.out.println(++i);
		System.out.println(i);
	}

	private static int test() {
		try {
			return 1;
		} catch (Exception e) {
			return 2;
		} finally {
			return 3;
		}
	}

	private static void testMethod() {
		System.out.println("testMethod");
	}

}
